﻿@{
    ViewBag.Title = "银行余额汇总表";
}
<html xmlns="http://www.w3.org/1999/xhtml">
@Html.Partial("LoadPanelPartial")
<head>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
        <script src="../../../../Scripts/json2.js" type="text/javascript"></script>  
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui-tabs.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery-ui.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PageCommon.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/json2.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/CJL.0.1.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/ImagePreview.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)


    <script type="text/javascript">

        $(function () {
            $('input[name=tbyyyy]').keydown(function () {
                var k = window.event.keyCode;

                if ((k == 161) || (k == 46) || (k == 8) || (k == 190) || (k == 110) || (k >= 48 && k <= 57) || (k >= 96 && k <= 105) || (k >= 37 && k <= 40)) {
                    if (k == 110 || k == 190) {

                        if ($(this).val().length == 0 || $(this).val().indexOf(".") != -1) {

                            window.event.returnValue = false;
                        }
                    }
                    if (k == 161) {
                        window.event.keyCode = 64;
                    }
                }
                else if (k == 13) {
                    window.event.keyCode = 9;
                }
                else {
                    window.event.returnValue = false;
                }
            });

            $('input[name=tbmm]').keydown(function () {
                var k = window.event.keyCode;

                if ((k == 161) || (k == 46) || (k == 8) || (k == 190) || (k == 110) || (k >= 48 && k <= 57) || (k >= 96 && k <= 105) || (k >= 37 && k <= 40)) {
                    if (k == 110 || k == 190) {

                        if ($(this).val().length == 0 || $(this).val().indexOf(".") != -1) {

                            window.event.returnValue = false;
                        }
                    }
                    if (k == 161) {
                        window.event.keyCode = 64;
                    }
                }
                else if (k == 13) {
                    window.event.keyCode = 9;
                }
                else {
                    window.event.returnValue = false;
                }
            });


        });



        function search() {
            var yyyy = tbyyyy.GetText();
            if (yyyy == "") {
                alert("年份不能为空!");
                return;
            }
            var mm = tbmm.GetText();
            if (mm == "") {
                alert("月份不能为空!");
                return;
            }
            form1.submit();
        }

        function change(s, e) {
            var yyyy = tbyyyy.GetText();
            if (yyyy.length > 4) {
                alert("请正确输入年份的格式!");
                tbyyyy.SetText("");
                return;
            }
            var mm = tbmm.GetText();
            if (mm.length > 2) {
                alert("请正确输入月份的格式!");
                tbyyyy.SetText("");
                return;
            }
        }
        
    </script>

    <style media=print>
		
    .PageNext{page-break-after: always;}
		
    .noprint {
	display:none;
	font-family: "宋体";
	font-size: 9pt;
    }

		
    </style>
</head>
<body>
<script type="text/javascript">
    if (top.boardtop) top.boardtop.head_txt.innerText = "银行余额汇总表";

</script>
<center class="noprint" >
  <p>
  <OBJECT  id=WebBrowser  classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2  height=0  width=0>
  </OBJECT>
  <input type="button" value="打印" onclick="document.all.WebBrowser.ExecWB(6,1)" />
  <input type="button" value="直接打印" onclick="document.all.WebBrowser.ExecWB(6,6)" />
  <input type="button" value="页面设置" onclick="document.all.WebBrowser.ExecWB(8,1)" />
  <input type="button" value="打印预览" onclick="document.all.WebBrowser.ExecWB(7,1)" />
  <input type="button" value="查询" onclick="search()" />
  <br />
  </p>
   @using (Html.BeginForm("SavePrintFwmmyh", "Fwmmyh", FormMethod.Post, new { id = "form1", @class = "tableForm" }))
 {
    <table align="center" class="tableForm">
    <tr>
    <th width="45%">年份:</th>
        <td width="5%" align="right">
        @Html.DevExpress().TextBox(settings =>
   {
       settings.Name = "tbyyyy";
       settings.Width = System.Web.UI.WebControls.Unit.Pixel(50);
       settings.Text = ViewData["yyyy"].ToString();
       settings.Properties.ValidationSettings.EnableCustomValidation = true;
       settings.Properties.ClientSideEvents.KeyUp = "function(s,e){change(s,e)}";
   }).GetHtml()
               </td>
   <th width="5%">月份:</th>
        <td align="left">
        @Html.DevExpress().TextBox(settings =>
   {
       settings.Name = "tbmm";
       settings.Width = System.Web.UI.WebControls.Unit.Pixel(50);
       settings.Text = ViewData["mm"].ToString();
       settings.Properties.ValidationSettings.EnableCustomValidation = true;
       settings.Properties.ClientSideEvents.KeyUp = "function(s,e){change(s,e)}";
   }).GetHtml()

   </td>
</tr>
</table>
      @Html.Hidden("hidyyyy", ViewData["yyyy"])
      @Html.Hidden("hidmm", ViewData["mm"])
 }
</center>
  <p>&nbsp;</p>
<table border="0" cellpadding="0" cellspacing="0" width="94%" align="center">
  <tr height="30">
    <td width="95%" height="28" colspan="2" align="center"><font size="5">@ViewData["yyyy"].ToString()年购房财政补贴表</font></td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  <tr height="20">
    <td width="38%" height="20">@Html.DevExpress().Label(settings =>
           {
               settings.Text = "鄞州区财政局";
               settings.Properties.Style.Font.Size = 15;
           }).GetHtml()</td>
        <td align="right"> 
                @Html.DevExpress().Label(settings =>
           {
               settings.Text = ViewData["yyyy"].ToString() + " 年 " + ViewData["mm"].ToString() + " 月 " + "20 日止";
               settings.Properties.Style.Font.Size = 15;
           }).GetHtml()
        </td>
  </tr>
  <tr>
    <td colspan="2" align="center">    
      @Html.Raw(ViewData["strFirstTable"].ToString())
     <table width="100%" style="padding-top:20px;padding-bottom:20px">
        <tr><td style= "font-size:20px" align="left" height="80">@Html.DevExpress().Label(settings =>
           {
               settings.Text = "其中:";
               settings.Properties.Style.Font.Size = 15;
           }).GetHtml()</td></tr>
     </table>
     @Html.Raw(ViewData["strFirstDetailTable"].ToString())
     <table width="100%">      
        <tr><td>&nbsp;</td></tr>
        <tr><td>&nbsp;</td></tr>
         <tr><td>&nbsp;</td></tr>
     </table>
    </td>
  </tr>
  <tr>
	<td align="center" colspan="2">&nbsp;</td>
  </tr>
</table>
<hr align="center" width="100%" size="50" class="noprint" >
<div class="PageNext"></div>
  <p>&nbsp;</p>
<table border="0" cellpadding="0" cellspacing="0" width="94%" align="center">
  <tr height="30">
    <td width="95%" height="28" colspan="2" align="center"><font size="5">@ViewData["rq2"].ToString().Substring(0, 4)年购房财政补贴表</font></td>
  </tr>
    <tr><td>&nbsp;</td></tr>
  <tr height="20">
    <td width="38%" height="20">@Html.DevExpress().Label(settings =>
           {
               settings.Text = "鄞州区财政局";
               settings.Properties.Style.Font.Size = 15;
           }).GetHtml()</td>
    <td align="right">
        @Html.DevExpress().Label(settings =>
   {
       settings.Text = ViewData["rq2"].ToString().Substring(0, 4) + " 年 " + ViewData["rq2"].ToString().Substring(4, 2) + " 月 " + ViewData["rq2"].ToString().Substring(6, 2) + " 日止";
       settings.Properties.Style.Font.Size = 15;
   }).GetHtml()
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center">
     @Html.Raw(ViewData["strSecondTable"].ToString())
    <table width="100%" style="padding-top:20px;padding-bottom:20px">
        <tr><td style= "font-size:20px" align="left" height="80">@Html.DevExpress().Label(settings =>
           {
               settings.Text = "其中:";
               settings.Properties.Style.Font.Size = 15;
           }).GetHtml()</td></tr>
     </table>
     @Html.Raw(ViewData["strSecondDetailTable"].ToString())
     <table width="100%">    
        <tr><td>&nbsp;</td></tr>
        <tr><td>&nbsp;</td></tr>
        <tr><td>&nbsp;</td></tr>
     </table>
    </td>
  </tr>
  <tr>
    <td align="center" colspan="2">&nbsp;</td>
  </tr>
</table>
<hr align="center" width="100%" size="50" class="noprint">
<div class="PageNext"></div>
  <p>&nbsp;</p>
<table border="0" cellpadding="0" cellspacing="0" width="94%" align="center">
  <tr height="30">
    <td width="95%" height="28" colspan="2" align="center"><font size="5">@ViewData["yyyy"].ToString()年购房财政补贴表</font></td>
  </tr>
    <tr><td>&nbsp;</td></tr>
  <tr height="20">
    <td width="38%" height="20">@Html.DevExpress().Label(settings =>
           {
               settings.Text = "鄞州区财政局";
               settings.Properties.Style.Font.Size = 15;
           }).GetHtml()</td>
    <td align="right">
                @Html.DevExpress().Label(settings =>
           {
               settings.Text = ViewData["yyyy"].ToString() + " 年 " + ViewData["mm"].ToString() + " 月 ";
               settings.Properties.Style.Font.Size = 15;
           }).GetHtml()
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center">
    @Html.Raw(ViewData["strThreeTable"].ToString().Replace("期", "月"))
      <table width="100%" style="padding-top:20px;padding-bottom:20px">
        <tr><td style= "font-size:20px" align="left" height="80">@Html.DevExpress().Label(settings =>
           {
               settings.Text = "其中:";
               settings.Properties.Style.Font.Size = 15;
           }).GetHtml()</td></tr>
     </table>
     @Html.Raw(ViewData["strThreeDetailTable"].ToString().Replace("期", "月"))
     <table width="100%">      
        <tr><td>&nbsp;</td></tr>
     </table>
    </td>
  </tr>
  <tr>
    <td align="center" colspan="2">&nbsp;</td>
  </tr>
</table>
</body>
</html>
